package net.user.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import net.user.db.member.MemberDAO;

public class MemberIDCheckAction implements Action{
	public ActionForward execute(HttpServletRequest request, HttpServletResponse response) throws Exception{
		
		System.out.println("net.user.action.MemberIDCheckAction.execute()");
		
		ActionForward forward=new ActionForward();
		
		String id=request.getParameter("ID");
		
		MemberDAO memberdao=new MemberDAO();
		int check=memberdao.confirmId(id);	
		
		request.setAttribute("id", id);
		request.setAttribute("check", check);
		
		forward.setRedirect(false);
		forward.setPath("/user/member/idchk.jsp"); 			
		return forward;
	}
}